package com.waitingsnow.common.share
{
import flash.display.Stage;
import flash.events.EventDispatcher;
import flash.geom.Rectangle;
import flash.media.StageWebView;
import flash.utils.ByteArray;

public class BaseShare extends EventDispatcher implements IShare
{
    //==========================================================================
    //  Variables
    //==========================================================================
    protected var stage:Stage;
    protected var area:Rectangle;
    protected var webView:StageWebView;
    
    //==========================================================================
    //  Properties
    //==========================================================================
    protected var _hasAuthorize:Boolean = false;
    public function get hasAuthorize():Boolean
    {
        return _hasAuthorize;
    }
    
    public function share(message:String = "", pic:ByteArray = null):void
    {
		
    }
    
    public function checkToken():void
    {
		
    }
    
    public function dispose():void
    {
		stage && (stage = null);
		area && (area = null);
    }
    
    /**
     * 设置网页stage;
     * @param value
     * 
     */    
    public function setStage(value:Stage, area:Rectangle = null):void
    {
        stage = value;
        this.area = area;
        checkToken();
    }
}
}